package cn.befory.exception;

/**
 * Created by befory on 2019/8/20.
 */
public class SysException extends RuntimeException {
    private ExceptionEnum exceptionEnum;

    private String msg;
    private int code;

    public SysException(String msg) {
        super(msg);
    }

    public SysException(String msg, int code) {
        this(msg);
        this.code = code;
    }

    public SysException(ExceptionEnum exceptionEnum) {
        this(exceptionEnum.getMsg(),exceptionEnum.getCode());
    }
}
